
import urllib2
from multiprocessing.dummy import Pool as ThreadPool
  
urls = [
  'http://hq.sinajs.cn/list=sh601000',
  'http://hq.sinajs.cn/list=sh601001',
  'http://hq.sinajs.cn/list=sh601002',
  'http://hq.sinajs.cn/list=sh601003',
  'http://hq.sinajs.cn/list=sh601004',
  'http://hq.sinajs.cn/list=sh601005',
  'http://hq.sinajs.cn/list=sh601006',
  'http://hq.sinajs.cn/list=sh601007',
  'http://hq.sinajs.cn/list=sh601008',
  'http://hq.sinajs.cn/list=sh601009',
  'http://hq.sinajs.cn/list=sh601010',
  'http://hq.sinajs.cn/list=sh601011',
  'http://hq.sinajs.cn/list=sh601012'
  # etc..
  ]
  
# Make the Pool of workers
pool = ThreadPool(4)
# Open the urls in their own threads
# and return the results
results = pool.map(urllib2.urlopen, urls)
for result in results:
    print result.read()
#close the pool and wait for the work to finish
pool.close()
pool.join()
